Release 10.1A: OpenEdge Development:
ADM and SmartObjects
Customizing the conversion utility
This section identifies the conversion utility source code and describes why you might want to access it to make modifications.
The source code for the conversion utility is shipped with the tool. This code was written in the AppBuilder and should be maintained in the AppBuilder. The procedure
Caution: Carefully review the contents of theprotools/convt89.pperforms the majority of the conversion tasks; it has no user interface. This procedure is called by theprotools/v89conv.wdialog, which contains most of the conversion utility user interface. Much of the conversion process is table driven from theprotools/v89names.datfile.protools/v89names.datfile to ensure that you know how the conversion utility will change your code. You can edit this file to ensure your customized code is not removed. For example, if you customized the state-changed internal procedure and do not want this procedure to be removed during the conversion, make the appropriate edit in theprotools/v89names.datfile.Generally, the conversion utility can fulfill most of the user’s conversion needs. If you need to perform a few one-for-one substitutions, however, you can do this by creating more entries in the
Note: Use caution when performing these one-for-one substitutions. The conversion utility checks each line of code in each of the files to be converted for each of these entries. Consequently, if you convert 1000 files and each file contains an average of 600 lines of code, each entry in this section causes 600,000 lookups.++OldName++NewNamesection of theprotools/v89names.datfile.The
++RemoveListsection of theprotools/v89names.datfile lists several attributes and procedures that are used in Version 8 but are obsolete in later versions. You can add to this list to remove occurrences of attributes and procedures that must be removed from the source files.If you want to add or modify features in the conversion utility, you should study the code in
protools/convt89.pand perform the changes. An easy change to make is to use custom prefixes (that is, prefixes other than adm- and local-) for your ADM1.1 methods. You should editprotools/convt89.pand initialize the variablecCustomPrefixwith your own prefix. For example, if your prefix is ajax-, then you must givecCustomPrefixthe initial value ofajax-(including the hyphen).The
++MethodListsection contains four columns:
- The first column contains the ADM1 method name.
- The second column contains the name of the ADM2 equivalent.
- The third column starts with
Pif the method remains a procedure orFLif it is converted to a function that returns a logical data type.- The fourth column contains parameter information for the method. It is a quoted string containing comma-delimited triplets, each of which includes the following components:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |